package com.boot.domain;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author
 * @date 2025-07-28
 * @Description 测试属性的非空校验
 */
@ConfigurationProperties("car2")
@Validated // 测试属性的非空校验
@Data
public class Car2 implements Serializable {
    //    @NotNull
    private String carName; //测试宽松绑定
    //    @NotEmpty
    private String color;
    private Double price;
//    @NotNull
    private Integer cno;


}
